import React, { useMemo } from 'react'
import { Form, Select } from 'antd'
const { Item } = Form
const { Option } = Select
function Main ({ dictionary }) {
  const acceptTypes = useMemo(() => {
    return (dictionary && dictionary['受理案件类型'] ? dictionary['受理案件类型'] : []).map(li => li.title)
  }, [dictionary])
  return (
    <Item label='受理案件类型' name='accept_report_type'>
      <Select placeholder='请选择受理案件类型' allowClear>
        {acceptTypes.map(li => {
          return (<Option key={li}>{li}</Option>)
        })}
      </Select>
    </Item>
  )
}

export default Main
